Repository navigation
Conversation
GitHub's search does not match an item's URL, so pasting a link into the picker found nothing while its bare number worked. Search by the URL's number instead, and keep only the item the URL names, so text matches of that number and URLs of other repositories list nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
In the new-task panel, From GitHub… searches with
gh issue list/gh pr list --search. Pasting a full issue or PR link (https://github.com/owner/repo/pull/12) found nothing, because GitHub's search does not match an item's URL. Typing the bare number12worked.Fix
listGitHubWorkItems(electron/github/work-items.ts) now recognises a search that is an issue or PR URL: it searches by the URL's number, then keeps only the item whose URL names the same host, repository and number. So:…/issues/12,…/pull/12,…/pull/12/files,…#discussion_r…and a link pasted withouthttps://all find chore(deps-dev): bump minimatch from 3.1.2 to 3.1.5 in the npm_and_yarn group across 1 directory #12;12in their text are left out;scopeToRepoalready does forrepo:qualifiers, because a picked PR is checked out by number from the project's own repository.The path's kind (
issues/pull) is not compared, since GitHub serves a PR under/issues/Ntoo.Tests
electron/github/work-items.test.tsfor the URL parsing, the number search, and the filter.npm run checkandnpm testpass.No screenshots: nothing in the UI changes except that the picker now lists the item, and the showcase harness has no GitHub repository to search.
🤖 Generated with Claude Code (Opus 5.5)